<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>康纳天花系统后台</title>
<link href="/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="/css/admins/base.css" rel="stylesheet" type="text/css">
<link href="/css/plugs/jDatepicker/jDatepicker-min.css"  rel="stylesheet"  /> 
<script src="/js/plugs/jquery.js"></script>
<script src="/js/admins/base.js"></script>
<script src="/js/plugs/jDatepicker/jDatepicker-min.js"></script>
<script src="/js/admins/account_info.js"></script>
<style type="text/css" >
.form-br {
	display: block; margin-top: 12px; margin-left: 10px;
}
</style>
</head>

<body>

<!-- nav start-->
{# include file="$tpl_root_path/admins/base/navbar.html" #}
<!-- nav end -->    
    
    
    
    
<div class="container-fluid">
    
      <div class="row">
      
    <!-- left  box start-->     
       {# include file="$tpl_root_path/admins/base/left_menu.html" #}
    <!-- left  box end-->        
 
  <!-- right  box start-->  
         
     <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main right-box">
          
          <div class="menu-navbar">{#$menu_navbar#}</div>
          <h3 class="page-header">账号信息 </h3>


 <div class="search-box">
 
              <form class="form-inline" id="admin_member_form" action="/admins/account_info.html" name="admin_member_form" enctype="multipart/form-data" method="GET">
                <div class="form-group">
                  <label>入职时间:&nbsp;</label>
                  <div class="input-right-gicos">
                    <span class="ico input-ico-calendar"></span>
                    <input class="form-control" readonly="readonly" id="start_datepicker"   placeholder="开始时间" value="{#if $jts#}{#$jts|date_format:'%Y-%m-%d'#}{#/if#}" type="text" name="jts" data-name="jts">
                 </div>
                </div>
                
                <div class="form-group">
                  <label>&nbsp;至&nbsp;</label>
                  <div class="input-right-gicos">
                    <span class="ico input-ico-calendar"></span>
                    <input class="form-control" readonly="readonly" id="end_datepicker"   placeholder="结束时间" value="{#if $jte#}{#$jte|date_format:'%Y-%m-%d'#}{#/if#}" type="text" name="jte" data-name="jte">
                 </div>
                </div>
                
                
                <div class="form-group">
                  <label>&nbsp;状态:&nbsp;</label>
                  <select class="form-select" id="state" name="state" data-name="state">
                    <option selected="" value="">请选择</option>
                   <option value="1" {#if $state==='pass'#}selected="selected"{#/if#}> 正常 </option>
                    <option value="0" {#if $state==='nopass'#}selected="selected"{#/if#}>已注销</option>
                  </select>
                </div>
                
                
                 <div class="form-group">
                  <label>&nbsp;所属部门:&nbsp;</label>
                  <select class="form-select" id="depart" name="depart" data-name="depart" >
                    <option  value="" >请选择</option>
                   {#if $arrDepartment#}
                      {#foreach key=key item=item from=$arrDepartment#}
                          <option  value="{#$item.ID#}"  {#if $depart == $item.ID#} selected="selected"{#/if#} >{#$item.GROUPNAME#}</option>
                      {#/foreach#}
                   {#/if#}
                 </select>
                </div>
                
             <div class="form-br">
                 <div class="form-group" >
                  <label>&nbsp;关键字:&nbsp;</label>
                  <input id="kw" name="kw"  class="form-control"  value="请输入姓名/手机号码查询"   placeholder="请输入姓名/手机号码查询" value="{#if $kw#}{#$kw#}{#/if#}"    type="text" size="50" data-name="kw" >
                     &nbsp;
                     

                </div>
          
                <div class="submit-box">
                   <button  type="submit" class="btn btn-success" id="form-submit">查&nbsp;询</button>
                </div>
                
             </div>   
                
              </form>
          </div>
          
          <div class="tool-list-box">
              <a href="/admins/account_add.html"   class="btn btn-warning">添加管理员</a>
          </div>
         
    
          <div class="info-list-box">
          <table class="table table-hover">
               <thead>
                <tr>
                    <th>账号</th>
                    <th>姓名</th>
                    <th>所属部门</th>
                    <th>手机号码</th>
                    <th>联系电话</th>
                    <th>邮箱</th>
                    <th>入职时间</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
               </thead>
               
                 <tbody>
                 {#if $list#}
                {# foreach from =$list item=l #}
                <tr>
                    <td>{#$l.USERNAME#}</td>
                    <td>{#$l.NAME#}</td>
                    <td>{#$l.GROUPNAME#}</td>
                    <td>{#$l.MOBILE#}</td>
                    <td>{#$l.TEL#}</td>
                    <td>{#$l.EMAIL#}</td>
                    <td>{#$l.JOINTIME|date_format:"%Y-%m-%d %H:%M:%S"#}</td>
                    <td>{#$l.STATENAME#}</td>
                    <td>
                    <a href="/admins/account_add-id-{#$l.ID#}.html">编辑</a>
                    &nbsp;
                    {# if $l.STATE==1#}
                    <a href="javascript:;" id="cancel-status-btn" class="cancel-status" data-id = "{#$l.ID#}" >注销</a>
                    {#else#}
                    <a href="javascript:;" id="initiate-status-btn" class="initiate-status" data-id = "{#$l.ID#}" >启用</a>
                    {#/if#}
                    </td>
                </tr>
               {# /foreach #}
               
               {#else#}
               <tr>
               <td colspan="9" align="center" ><span class="no-result">没有找到相关信息</span></td>
               </tr>
               
                {#/if#}
                
              </tbody>
            </table>
          </div>
          
         

          
     </div>
 
  <!-- right  box end-->         
        
      </div>
</div>



</body>
</html>
